From: Othmar Truniger Date: Wed, 31 Dec 2014 09:20:11 +0000 (+0100) Subject: linknx: add init file X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=c7e53198aefd9e659e3406980e6f68a21b2d946a;p=feed%2Fpackages.git linknx: add init file Signed-off-by: Othmar Truniger --- diff --git a/net/linknx/files/linknx.init b/net/linknx/files/linknx.init new file mode 100644 index 0000000000..574bf41976 --- /dev/null +++ b/net/linknx/files/linknx.init @@ -0,0 +1,22 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +START=98 +STOP=10 +NAME=linknx +PROG=/usr/bin/$NAME + +. /lib/functions.sh + +start() { + local conf options + config_load "$NAME" + config_get conf args conf '/etc/linknx.xml' + config_get options args options '' + test -f $conf || cp -p /etc/linknx.xml.dist $conf + service_start $PROG --config=$conf $options +} + +stop() { + service_stop $PROG +}